home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Book Chapters / 11 - Porting / Sample Code / ErrCheck.h < prev    next >
Text File  |  1995-03-28  |  903b  |  18 lines

  1. /************************************************************************************
  2.  *                                                                                                                                                                    *
  3.  *    ErrCheck.h                                                                                                                                            *
  4.  *                                                                                                                                                                    *
  5.  *    ©1995 Douglas Grounds. All Rights Reserved.                                                                            *
  6.  *                                                                                                                                                                    *
  7.  *    This file contains error checking functions which makes checking for resource,    *
  8.  *    memory and other error conditions much simpler. Examples are given for the            *
  9.  *    use of each function.                                                                                                                        *
  10.  *                                                                                                                                                                    *
  11.  ************************************************************************************/
  12.  
  13.  void notifyOfError (char *routineName, char *caller, short errValue, 
  14.         Boolean isFatal);
  15.  Boolean checkResError (Handle h);
  16.  Boolean checkMemError (void *myPointerOrHandle);
  17.  Boolean checkOSErr (OSErr err);
  18.